package com.spcmg.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum EnumSysCode {

    SUCCESS("0000", "success"),
    FAILURE("0001", "failure"),
    ERR_5001("5001", "经纬度坐标缺失"),
    ERR_5002("5002", "机房名称重复"),
    ERR_5003("5003", "机房等级缺失"),
    ERR_5004("5004", "机房类型缺失"),
    ERR_5005("5005", "IDC机房可出租机架数缺失"),
    ERR_5006("5006", "IDC机房已出租机架数缺失"),
    ERR_5007("5007", "投产时间缺失"),
    ERR_5008("5008", "机房类型为IDC机房，可出租机架数，已出租机架数必须填写"),
    ERR_5009("5009", "局站不存在"),
    // msg code
    MSG_6002("6002", "保存成功"),
    MSG_6003("6003", "更新成功"),
    MSG_6004("6004", "删除成功"),
    ;

    String code;
    String msg;

    @Override
    public String toString() {
        return code + "-" + msg;
    }
}
